package com.soyorin.order.entity;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import java.time.Instant;

@Data
@TableName("chat_item")
public class ChatItem {
    @TableId(type = IdType.AUTO)
    private Long id;
    
    @TableField("create_time")
    private Instant createTime;
    
    @TableField("update_time")
    private Instant updateTime;
    
    // 所属聊天群组
    @TableField("rela_chat_id")
    private Long relaChatId;
    
    // 发送用户
    @TableField("send_user_id")
    private Long sendUserId;
    
    // 消息类型（是否为图片）
    @TableField("is_picture")
    private Boolean isPicture;
    
    // 消息内容
    @TableField("content")
    private String content;
    
    // 回复的消息ID
    @TableField("reply_chat_item_id")
    private Long replyChatItemId;
}
